<%-- 
    Document   : listfood
    Created on : Jan 5, 2012, 10:55:10 AM
    Author     : VIC
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="Beans.*,java.util.Vector,Models.*"%>
<html>
    <body>
        <%
            String loai = request.getParameter("loai");
            String nhom = request.getParameter("nhom");
            String tenma = request.getParameter("tenma");
            int langid = (Integer) session.getAttribute("langid");
            int n = MonAn_Model.SoLuongMA(langid,loai,nhom,tenma);
            int numpage =0;
            if(n%5==0)
            {
                numpage = n/5;
            }
            else
            {
                numpage = n/5 +1;
            }
            for(int item=0;item<numpage;item++)
            {%>
                <div id="pagefood<%=item %>" class="slide"></div>
        <% } %>
    </body>
</html>
